<script setup>
import { useMemberStore } from '../../stores/modules/member'
const memberStore = useMemberStore()
import { http } from '../../utils/http';
const testRequest= async()=>{
   const res= await http({
    url:'/home/banner',
    method:'GET'
  })
  console.log(res.result)
}
</script>

<template>
  <view class="my">
    <view>用户信息：{{ memberStore.profile }}</view>
    <button @tap="memberStore.setProfile({
      nickname: '鱼',
      token: '123'
    })
      " size="mini" plain type="primary">
      保存用户信息
    </button>
    <button @tap="memberStore.clearProfile()" size="mini" plain type="warn">清理用户信息</button>
    <button @tap="testRequest()" size="mini" plain type="default">请求测试</button>
  </view>
</template>

<style lang="scss">
//
</style>